From 90eadf2e1764e7e2622ad699b34e2637a0fc4a91 Mon Sep 17 00:00:00 2001 From: Jyrki Gadinger Date: Tue, 18 Feb 2025 09:48:32 +0100 Subject: [PATCH] vfs: fix root folder detection regression Fixes #7864 Signed-off-by: Jyrki Gadinger --- src/common/vfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/vfs.cpp b/src/common/vfs.cpp index 1d0b6d23d..2e84fb2fb 100644 --- a/src/common/vfs.cpp +++ b/src/common/vfs.cpp @@ -71,7 +71,7 @@ Result Vfs::checkAvailability(const QString &path, Vfs::Mode mode #ifdef Q_OS_WIN if (mode == Mode::WindowsCfApi) { const auto info = QFileInfo(path); - if (QDir(info.canonicalPath()).isRoot()) { + if (QDir(info.canonicalFilePath()).isRoot()) { return tr("Please choose a different location. %1 is a drive. It doesn't support virtual files.").arg(path); } if (const auto fileSystemForPath = FileSystem::fileSystemForPath(info.absoluteFilePath()); -- 2.30.2